
INCLUDE_DIRECTORIES(. objs)

INCLUDE_DIRECTORIES(/usr/include/ffmpeg)

ADD_DEFINITIONS(-Wall -g -O3)


SET(QT_USE_QTOPENGL true)
INCLUDE(${QT_USE_FILE})
LINK_LIBRARIES(${QT_LIBRARIES})
#LINK_LIBRARIES(${QT_GL_LIBRARY})
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
LINK_LIBRARIES(${SDL_LIBRARY})
LINK_LIBRARIES(${AVFORMAT})


IF (XV)
  ADD_DEFINITIONS(-DHAVE_XV)
  LINK_LIBRARIES(${XV})
ENDIF (XV)

IF (DV)
  ADD_DEFINITIONS(-DHAVE_LIBDV)
  LINK_LIBRARIES(${DV})
ENDIF (DV)

IF (AVC1394)
IF (ROM1394)
  ADD_DEFINITIONS(-DHAVE_DV1394)
  LINK_LIBRARIES(${AVC1394})
  LINK_LIBRARIES(${ROM1394})
ENDIF (ROM1394)
ENDIF (AVC1394)

IF (IEC61883)
  ADD_DEFINITIONS(-DHAVE_IEC61883)
  LINK_LIBRARIES(${IEC61883})
ENDIF (IEC61883)

IF (LIBAVCODEC)
  ADD_DEFINITIONS(-DHAVE_LIBAVCODEC)
  LINK_LIBRARIES(${LIBAVCODEC})
ENDIF (LIBAVCODEC)

IF (SWSCALE)
  ADD_DEFINITIONS(-DHAVE_SWSCALE)
  LINK_LIBRARIES(${SWSCALE})
ENDIF (SWSCALE)

# MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
# MESSAGE( STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE} )
